
class Colaborador extends Pessoa {

    String cnpjCpf
    String razaoSocial

    static mapping = {
        tablePerHierarchy false;
    }

    static hasMany = [ convenio:Convenio, responsavel:Responsavel ];

    static constraints = {
        cnpjCpf(cnpj:true)
        razaoSocial(size: 1..100, blank: false)
    }
    
    String toString() {
        return "${id}" 
    }
}
